package com.jackson.springmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/*
 * Author: JacksonCoder
 * FileName: User
 * Version: 1.0.0
 * Date: 2025/7/15
 */
@Data
@TableName("user")  // 指定表名
public class User {
    @TableId(type = IdType.AUTO) // 关键修改
    private Long id;
    private String name;
    private Integer age;
    private String email;
}
